Skip to main content

ElementIsInList

Type​

operator

Summary​

Determines if a given element is in Target

Syntax​

<Needle> is in <Target>

Description​

Needle must be an element of Target rather than a sublist, or contained within a list element of Target.

Parameters​

NameTypeDescription

Needle

Any expression.

Target

An expression which evaluates to a list.

Examples​

variable tList as List
put [ "a", "b", "c", "d" ] into tList

variable tIsIn as Boolean
put "a" is in tList into tIsIn -- tIsIn contains true

Value​

NameTypeDescription

return

Returns true if Needle can be found among the elements of Target.

Thank you for your feedback!

Was this page helpful?